package top.kaoshanji.p1ch02a;

/**
 * 仅仅选出重的苹果
 * author kaoshanji
 * ^_^
 * create time 2025/2/10 10:29
 */
public class AppleWeightPredicate implements ApplePredicate {

    @Override
    public boolean test(Apple apple) {
        return apple.getWeight() > 150;
    }
}
